package com.library.librarybackend.domain.enums;

import lombok.Getter;

/**
 * @author 平
 * @description OSS枚举类
 * @since 2025-09-21 14:08
 */
@Getter
public enum OSSEnum {

    PUBLIC("public"),
    PRIVATE("private");

    private final String value;

    OSSEnum(String value) {
        this.value = value;
    }

    public static String isPrivate(Boolean isPrivate) {
        return isPrivate ? PRIVATE.value : PUBLIC.value;
    }

}
